package com.tianma.upload.uploadjartest.factory;

import com.tianma.upload.uploadjartest.factory.method.BaomaFactroy;
import com.tianma.upload.uploadjartest.factory.method.BenchiCar;
import com.tianma.upload.uploadjartest.factory.method.BenchiFactory;
import com.tianma.upload.uploadjartest.factory.simple.CarType;
import com.tianma.upload.uploadjartest.factory.simple.ICar;
import com.tianma.upload.uploadjartest.factory.simple.SimpleFatory;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author lgc
 * @createDate 2020/8/7 - 9:51
 */
public class Test {
    public static void main(String[] args){
        /*ICar carByName = SimpleFatory.getCarByName(CarType.BAOMA);
        ICar carByName1 = SimpleFatory.getCarByName(CarType.BENCHI);
        System.out.println("carByName = " + carByName.carName());
        System.out.println("carByName1 = " + carByName1.carName());

        String s = new BaomaFactroy().getCar().carName();
        String s1 = new BenchiFactory().getCar().carName();
        System.out.println("s1 = " + s1);
        System.out.println("s = " + s);*/

        LocalTime localTime = LocalTime.now().plusMinutes(30);
        System.out.println("localTime = " + localTime);

        LocalDateTime.now().plusMinutes(30);
        System.out.println();
    }
}
